package com.medical.system.converter;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.medical.system.model.entity.SysDictType;
import com.medical.system.model.form.DictTypeForm;
import com.medical.system.model.vo.DictTypePageVO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface DictTypeConverter {

    DictTypeForm entity2Form(SysDictType sysDictType);

    SysDictType form2Entity(DictTypeForm dictTypeForm);

    Page<DictTypePageVO> entity2PageVO(Page<SysDictType> page);
}
